package com.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * 聊天室房间表
 *
 * @author sly
 * @since 2023-12-30
 */
@Getter
@Setter
@TableName("t_chat_room")
@ApiModel(value = "ChatRoomEntity对象", description = "聊天室房间表")
public class ChatRoomEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("聊天室名")
    @TableField("chatTitle")
    private String chatTitle;

    @ApiModelProperty("聊天室简介")
    @TableField("chatIntroduction")
    private String chatIntroduction;

    @ApiModelProperty("聊天室人数")
    @TableField("peopleNum")
    private Long peopleNum;

    @ApiModelProperty("封面地址")
    @TableField("chatCover")
    private String chatCover;

    @ApiModelProperty("创建时间")
    @TableField("createTime")
    private Date createTime;

    @ApiModelProperty("逻辑删除")
    @TableField("isDel")
    private Integer isDel;

    @ApiModelProperty("聊天室群主id")
    @TableField("chatManagerId")
    private Long chatManagerId;

    @ApiModelProperty("聊天室群主名")
    @TableField("chatManagerName")
    private String chatManagerName;

    @ApiModelProperty("聊天室id")
    @TableField(exist = false)
    private Long chatId;

    @TableField(exist = false)
    private Integer currentSize = 30;
    @TableField(exist = false)
    private Integer currentPage = 1;
}
